import request from '@/utils/request'

export function getBuildingListAPI(params) {
  return request({
    url: '/park/building',
    params
  })
}

// 添加楼宇
export function createBuildingAPI(data) {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}

// 删除楼宇
export function delBuildingListAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}

// 编辑楼宇
export function editBuildingAPI(data) {
  return request({
    url: '/park/building',
    method: 'PUT',
    data
  })
}
